<?php
session_start();
require_once 'header.php';
function __autoload($className)
	{
    	require_once('class/' . $className . '.class.php');
	}
session::need_member();
$date=date("Y-m");
$condition[] = "date like '%".mysql_escape_string($date)."%'";
$condition[]="payment.userid=userinfo.userid";
$GetTop=database::LimitQuery('payment,userinfo',array(
'select' => 'payment.userid,sum(amount),username',
'condition' => $condition,
'groupby' => 'group by payment.userid',
'offset' => 0,
'size' => 10,
'order' => 'order by sum(amount) desc'
));
require_once 'html/topbuyofmonth.php';
?>